<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8"/>
    <title>电影编辑页面</title>
    <link href="https://cdn.bootcss.com/bootstrap/4.0.0/css/bootstrap.min.css" rel="stylesheet"/>
</head>
<body>
<div class="container">
    <h1 class="text-center">角色编辑页面</h1>
    <p>姓名：姚鸿杰</p>
    <p>学号：1604220536</p>

    <div class="row">
        <div class="col">
            <label>电影名称：</label>
            <span th:text="${info.getMovie().getName()}">黄飞鸿</span>
        </div>
        <div class="col">
            <label>发行日期：</label>
            <span th:text="${info.movie.getCreateDate()}?${#dates.format(info.movie.getCreateDate(),'yyyy-MM-dd')}:''">黄飞鸿</span>

        </div>
    </div>


    <form method="post" th:action="@{/role/edit}">
        <div class="form-group">
            <label for="roleName">角色名称</label>
            <input type="text" class="form-control" name="roleName" th:value="${info.getName()}"/>

        </div>
        <div class="form-group">
            <label for="actorName">演员名称</label>
            <input type="text" class="form-control" name="actorName" th:value="${info.getActor().getName()}"/>

        </div>
        <input type="hidden" name="movie_id" th:value="${info.movie.id}"/>
        <input type="hidden" name="role_id" th:value="${info.id}"/>
        <button type="submit" class="btn btn-primary">保存</button>
    </form>
</div>
</body>
</html>